package com.ruoyi.project.student.controller;


import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.student.domain.Class;
import com.ruoyi.project.student.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/system/class")
public class ClassController extends BaseController {

    @Autowired
    public ClassService classService;

    /**
     * 获取用户列表
     */
    @PreAuthorize("@ss.hasPermi('class:list')")
    @GetMapping("/list")
    public TableDataInfo list(Class classParam) {
//        startPage();
        List<Class> classlist = classService.selectClass(classParam);
        return getDataTable(classlist);
//        return list;
    }

}
